Documents for PDF, .NET Edition Documentation
CheckKey Method

GrapeCity.Documents.Common Assembly > GrapeCity.Documents.Common Namespace > OwnedKeyedCollection<TKey,TItem> Class : CheckKey Method
The item to check.
The old key.
The new key.
Throws an exception if collection already contains item with specified key.
Syntax
'Declaration
 
Public Overridable Sub CheckKey( _
   ByVal item As TItem, _
   ByVal oldKey As TKey, _
   ByVal newKey As TKey _
) 
public virtual void CheckKey( 
   TItem item,
   TKey oldKey,
   TKey newKey
)

Parameters

item
The item to check.
oldKey
The old key.
newKey
The new key.
See Also

Reference

OwnedKeyedCollection<TKey,TItem> Class
OwnedKeyedCollection<TKey,TItem> Members